function e(e, n) {
    if (!(e instanceof n)) throw new TypeError("Cannot call a class as a function");
}

Object.defineProperty(exports, "__esModule", {
    value: !0
});

var n = function() {
    function e(e, n) {
        for (var t = 0; t < n.length; t++) {
            var r = n[t];
            r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), 
            Object.defineProperty(e, r.key, r);
        }
    }
    return function(n, t, r) {
        return t && e(n.prototype, t), r && e(n, r), n;
    };
}(), t = function() {
    function t() {
        e(this, t);
    }
    return n(t, [ {
        key: "checkColor",
        value: function(e) {
            return void 0 !== e && "" !== e || "请输入颜色";
        }
    }, {
        key: "checkDate",
        value: function(e) {
            return void 0 !== e && "" !== e || "请输入日期";
        }
    }, {
        key: "checkCar",
        value: function(e) {
            return void 0 !== e && "" !== e || "请选择车型";
        }
    }, {
        key: "checkName",
        value: function(e) {
            return void 0 === e || "" === e ? "名字不能为空" : e.length <= 4 || "请输入正确的名字";
        }
    }, {
        key: "checkPhone",
        value: function(e) {
            return void 0 === e || "" === e ? "手机号码不能为空" : !!/^1[0-9]{10}$/.test(e) || "手机号码格式不正确";
        }
    }, {
        key: "checkChepai",
        value: function(e) {
            return !!/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/.test(e) || "车牌号码格式不正确";
        }
    } ]), t;
}();

exports.Check = t;